const mysql = require("mysql");
const conn = mysql.createConnection({
  host:"127.0.0.1",
  user:"root",
  password:"root",
  database:"myjune",
  port:3306,
});
conn.connect();
//导出mysql链接对象
module.exports = conn;




// const mysql = require("mysql");
// const conn = mysql.createConnection({
//   host:"127.0.0.1",
//   user:"root",
//   password:"root",
//   database:"myjune",
//   port:3306,
// });
// conn.connect();
// module.exports = conn;


